<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="frm.ssh.util.page.SearchBean"%>
<%@page import="com.stone.utils.NumUtils"%>
<%@ include file="/jsp/common/common.jsp"%>
<html>
	<head>
		<script language="javascript" src="<%=contextPath%>/js/func.js"type=""></script>
		<script language="javascript" src="<%=contextPath%>/js/sorttable.js"type=""></script>
		<link rel="stylesheet" type="text/css"	href="<%=contextPath%>/css/sorttable.css">
		<script language="javascript" src="<%=contextPath%>/jsp/business/jc/gzltjrj.js"type=""></script>
		
		<script>
			Ext.onReady(function(){
				var tb = new Ext.Toolbar({
			   		renderTo: document.all.tbar,
			    	items: [
				        '->',
				        {
				            text: '查询条件',
				            icon:"<%=contextPath%>/images/down_bottom.gif",
				            handler:displayquerydiv
				        }
			    	]
			    });
			});
		</script>
	</head>
	<body>
		<div id ='tbar'></div>
		<br>
		<div id="Layer" style="position:absolute;display:block left:0px; top:0px; width:100%; height:94%; z-index:1000; overflow:auto;">
		
		<form id="frmM" name="frmM" method="POST" action="<%=contextPath%>/queryUser.do">
		<s:hidden name="searchBean.displayFlag" />	
			<table width="100%" id="contab">
				<tbody id="querydiv">
				<tr>
					<td>
					<input type="radio" id="searchBean.con5" name="searchBean.con5" value="21" ${searchBean.con5=="21"?"checked":""} onClick="cmt(this);"/>二次检修班
				    <input type="radio" id="searchBean.con5" name="searchBean.con5" value="22" ${searchBean.con5=="22"?"checked":""} onClick="cmt(this);"/>变电检修一班
			        <input type="radio" id="searchBean.con5" name="searchBean.con5" value="23" ${searchBean.con5=="23"?"checked":""} onClick="cmt(this);"/>变电检修二班
				    <input type="radio" id="searchBean.con5" name="searchBean.con5" value="24" ${searchBean.con5=="24"?"checked":""} onClick="cmt(this);"/>电气试验班
					<input type="radio" id="searchBean.con5" name="searchBean.con5" value="1151" ${searchBean.con5=="1151"?"checked":""} onClick="cmt(this);"/>外勤班
			        </td>
				</tr>
				</tbody>
			</table>
			<table width="100%" id="listtab">
			<thead>
				<tr>
					
					<td colspan="2" class="DataTable_Title" style="font-size:12px;font-weight:bold;"  nowrap>姓名</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >1日</td>					
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >2日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >3日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >4日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >5日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >6日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >7日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >8日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >9日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >10日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >11日</td>					
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >12日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >13日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >14日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >15日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >16日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >17日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >18日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >19日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >20日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >21日</td>					
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >22日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >23日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >24日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >25日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >26日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >27日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >28日</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" >29日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >30日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >31日</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  >合计</td>
				</tr>
				</thead>
				<c:forEach items="${exp3}" var="detail" >	
						<tr>
						<td  style="text-align: left" nowrap>
								${detail[0]}	
						</td>
						<td>
							<c:if test="${'0' == detail[32]}">
								<img src="<%=contextPath%>/images/party.jpg"  style="cursor:pointer"/></th>
							</c:if>	
						</td>
						<td>
							<a href="#" onClick="toDetail('${detail[0]}', '01')">
								<fmt:formatNumber type="number" value="${detail[1]}" maxFractionDigits="2"/>
							</a>
						</td>
						<td style="text-align: left" >
							<a href="#" onClick="toDetail('${detail[0]}', '02')">
								<fmt:formatNumber type="number" value="${detail[2]}" maxFractionDigits="2"/>
							</a>
						</td>
						<td>
						<a href="#" onClick="toDetail('${detail[0]}', '03')">
						<fmt:formatNumber type="number" value="${detail[3]}" maxFractionDigits="2"/>
						</a>	
						</td>
						<td   >
						<a href="#" onClick="toDetail('${detail[0]}', '04')">
						<fmt:formatNumber type="number" value="${detail[4]}" maxFractionDigits="2"/></a>
						</td>
						<td style="text-align: left" >
						<a href="#" onClick="toDetail('${detail[0]}', '05')">
						<fmt:formatNumber type="number" value="${detail[5]}" maxFractionDigits="2"/></a>
						</td>
						<td style="text-align: left" >
						<a href="#" onClick="toDetail('${detail[0]}', '06')">
						<fmt:formatNumber type="number" value="${detail[6]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" >
						<a href="#" onClick="toDetail('${detail[0]}', '07')">
						<fmt:formatNumber type="number" value="${detail[7]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" >
						<a href="#" onClick="toDetail('${detail[0]}', '08')">
						<fmt:formatNumber type="number" value="${detail[8]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" >
						<a href="#" onClick="toDetail('${detail[0]}', '09')">
							<fmt:formatNumber type="number" value="${detail[9]}" maxFractionDigits="2"/>
						</td>	
						<td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '10')">
						<fmt:formatNumber type="number" value="${detail[10]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '11')">
							<fmt:formatNumber type="number" value="${detail[11]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '12')">
							<fmt:formatNumber type="number" value="${detail[12]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '13')">
							<fmt:formatNumber type="number" value="${detail[13]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '14')">
							<fmt:formatNumber type="number" value="${detail[14]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '15')">
							<fmt:formatNumber type="number" value="${detail[15]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '16')">
							<fmt:formatNumber type="number" value="${detail[16]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '17')">
							<fmt:formatNumber type="number" value="${detail[17]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '18')">
							<fmt:formatNumber type="number" value="${detail[18]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '19')">
						<fmt:formatNumber type="number" value="${detail[19]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '20')">
							<fmt:formatNumber type="number" value="${detail[20]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '21')">
							<fmt:formatNumber type="number" value="${detail[21]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '22')">
							<fmt:formatNumber type="number" value="${detail[22]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '23')">
							<fmt:formatNumber type="number" value="${detail[23]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '24')">
							<fmt:formatNumber type="number" value="${detail[24]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '25')">
							<fmt:formatNumber type="number" value="${detail[25]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '26')">
							<fmt:formatNumber type="number" value="${detail[26]}" maxFractionDigits="2"/>
							</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '27')">
						<fmt:formatNumber type="number" value="${detail[27]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '28')">
							<fmt:formatNumber type="number" value="${detail[28]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '29')">
							<fmt:formatNumber type="number" value="${detail[29]}" maxFractionDigits="2"/>
						</td><td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '30')">
						<fmt:formatNumber type="number" value="${detail[30]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" ><a href="#" onClick="toDetail('${detail[0]}', '31')">
							<fmt:formatNumber type="number" value="${detail[31]}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" >
							<fmt:formatNumber type="number" value="${detail[1]+detail[2]+detail[3]+detail[4]+detail[5]+detail[6]+detail[7]+detail[8]+detail[9]+detail[10]+detail[11]+detail[12]+detail[13]+detail[14]+detail[15]+detail[16]+detail[17]+detail[18]+detail[19]+detail[20]+detail[21]+detail[22]+detail[23]+detail[24]+detail[25]+detail[26]+detail[27]+detail[28]+detail[29]+detail[30]+detail[31]}" maxFractionDigits="2"/>
						</td>
					</tr>
				</c:forEach>
				
				<c:if test="${exp3 == null || fn:length(exp3) == 0 }">
					<tr>
						<td colspan="35" style="text-align: center">
							无相关记录
						</td>
					</tr>
				</c:if>
			</table>
			<table width="100%" id="tablestyle2">
				<tr>
					<td>
						<hr />
					</td>
				</tr>
				<tr>
					<td>${pageDown}</td>
				</tr>
			</table>
		</form>
		<iframe id="ifrDownLoad" style="display:none" src=""></iframe>	
		</div>
	</body>
</html>
<script type="text/javascript">
	var st = new SortableTable(document.getElementById("listtab"),["None","Number","Number","Number","Number","Number","Number", "Number","Number","Number","Number","Number","Number","Number","Number","Number", "Number","Number","Number","Number","Number","Number","Number","Number","Number", "Number","Number","Number","Number", "Number","Number","Number","Number","Number"]);
</script>
<script language="javascript">

			// 查询
			function cmt(){
				document.frmM.action = "<%=contextPath%>/planMonth!tongji.do?page=1&c=c&ym=${ym}";
				document.frmM.submit();
			}

			// 新建修改进入详细页面
			function toDetail(username, day){alert(username);
					flowidea.win.ym = '${ym}';
					flowidea.win.day = day;
					flowidea.win.username = username;		
					flowidea.win.openCommentWindow();
			}

			// 删除
			function deleteIt()
			{
				if(!isChecked("id")) {
		 			alert("请选择要删除的记录");
		 			return false;
		 		}
		    	if(confirm("确定要删除选中的记录吗？")) {
		        	document.frmM.action = "<%=contextPath%>/sbqxjl!delete.do?searchBean.con15=";
					document.frmM.submit();
		    	}
			}
			
		</script>